package com.tsky.yyj.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @function：广告
 * @author: cainiao
 * @version 1.0 
 * @time: 2013-6-12 下午02:29:26
 */
@Entity
@Table(name = "T_YYJ_Advertisement")
public class Advertisement {
	@Id
	private String id;// 序号
	private String title;// 标题
	private String content;// 广告内容
	private String image;// #广告图片（上传图片）
	@ManyToOne @JoinColumn(name = "type_id")
	private Classify type;// @分类
	private String status = "0";// 状态（0: 审核中，1：在线，2：下线）

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Classify getType() {
		return type;
	}

	public void setType(Classify type) {
		this.type = type;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

}
